package com.ruoyi.ufox.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 连接日志对象 bis_connection_log
 * 
 * @author ufoxs
 * @date 2022-08-16
 */
public class BisConnectionLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 上线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date connectTime;

    /** 离线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date disconnectTime;

    /** 在线时长(分钟) */
    @Excel(name = "在线时长(分钟)")
    private Long onlineMinutes;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setConnectTime(Date connectTime) 
    {
        this.connectTime = connectTime;
    }

    public Date getConnectTime() 
    {
        return connectTime;
    }
    public void setDisconnectTime(Date disconnectTime) 
    {
        this.disconnectTime = disconnectTime;
    }

    public Date getDisconnectTime() 
    {
        return disconnectTime;
    }
    public void setOnlineMinutes(Long onlineMinutes) 
    {
        this.onlineMinutes = onlineMinutes;
    }

    public Long getOnlineMinutes() 
    {
        return onlineMinutes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("deviceId", getDeviceId())
            .append("connectTime", getConnectTime())
            .append("disconnectTime", getDisconnectTime())
            .append("onlineMinutes", getOnlineMinutes())
            .append("remark", getRemark())
            .toString();
    }
}
